﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1._02_Common
{
    public class MyCommonTool
    {
        public static string GetOrderDate()
        {
            DateTime date = DateTime.Now;

            if (date.Hour < 15)
            {
                date = date.AddDays(-1);
            }

            return date.ToString("yyyy-MM-dd");
        }
    }
}
